package idv.long.mcv.control.sub
{	
	import idv.long.mcv.model.PhysicProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class InitModelCommand extends SimpleCommand
	{
		public function InitModelCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			trace("InitModelCommand execute");
			
			var mainView:Object = notification.getBody();
			
			// 建立 並 註冊 proxy
			var physicProxy:PhysicProxy = new PhysicProxy(PhysicProxy.NAME, mainView);
			facade.registerProxy(physicProxy);
						
/* 			var settingProxy:SettingProxy = new SettingProxy(SettingProxy.NAME);
			facade.registerProxy(settingProxy);
			
			var resourceProxy:ResourceProxy = new ResourceProxy(ResourceProxy.NAME);
			facade.registerProxy(resourceProxy); */
		}
		
	}
}